<?php 
if(KT!='KhiThe') exit;
class intros_controller extends intros_model{
		
	public function __construct(){
		global $lang;
		$this->_layout = NULL;
		$lang['error_sms']='';
		$this->lang = $lang;
		parent::__construct();
		parent::addObject('khithe_template');
		parent::addObject('khithe_request');
		parent::addObject('khithe_string');
		parent::addObject('khithe_captcha');
	}
	
	public function index_action()
	{
        $seo_key = str_replace('.html','',$this->valUrl());
        $arr = parent::get_intros($seo_key);

		$strHtmlContent = $this->khithe_display('index');
        $strHtmlContent = $this->khithe_assign($strHtmlContent, $arr);
        $strHtmlContent = $this->khithe_assign($strHtmlContent, $this->lang);


        $arrAction = array(
            'html'=>$strHtmlContent,
            'title_paper'=>$arr['TitlePage'],
            'keywords'=>trim(strip_tags($arr['KeyWords'])),
            'description'=>$this->getDescription($arr['Description']),
            'SeoH1'=>$arr['SeoH1'],
            'SeoH2'=>$arr['SeoH2'],
            'SeoP'=>$arr['SeoP'],
        );

        return $arrAction;

	}


}
?>